home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-18 | 1.5 KB | 33 lines | [TEXT/MPS ] |
- Dude NOT! - Fix autoremounter network behavior.
-
- Mark D. Rustad 93/06/16.
-
- This extension (hack) changes the behavior of autoremounter
- to never send broadcast echo packets (imagine what that does
- to large ethernets or token rings). It is called “Dude NOT!”
- because all the trouble is caused by the 'dude' Gestalt selector
- function.
-
- Installation of this extension will tend to prevent autoremounter
- from remounting volumes on very small networks when you plug into
- the network after coming out of sleep. Of course, you should
- always connect the network BEFORE coming out of sleep to ensure
- that a unique AppleTalk address is acquired... So, if you never
- use a large network and like to plug a running maching into active
- networks, this hack is not for you.
-
- This hack also demonstrates the creation of a stand-alone code
- resource with it’s own A5 world and no assembly and no _datainit
- junk. Of course, I do need to use GCC to do this and a couple inlines,
- but I like it, because compilers can generate smaller, faster code
- if you use A5 worlds rather than passing global variable pointers
- around all over (I wish I had discovered this technique years ago).
- You can use the same technique with MPW C if you link with one tiny
- assembly routine (provided in the comments later).
-
- This hack turned out so simple I didn’t even need any globals, so in
- this case things could be simplified by NOT setting up the A5 world,
- but then this hack couldn’t demonstrate the efficient, convenient use
- of A5 globals in a stand-alone code resource.
-
- Because this truly is a hack, it doesn’t have an icon.